package singleton.pattern.demo4;

/**
 * Created by DELL
 * Date: 2019/9/28.
 * Time: 13:56
 */
class MakeACaption {
    private static MakeACaption _caption;

    private MakeACaption(){}
    //使用静态内部类
    private static class SingletonHelper{
        private static final MakeACaption _caption = new MakeACaption();
    }

    public static MakeACaption getCaption(){
        return SingletonHelper._caption;
    }
}